package com.yjf.repository;

import com.yjf.pojo.LagouAuthCode;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

import java.util.List;

/**
 * @author Administrator 岳剑飞
 * @date
 * @description:
 */
public interface LagouAuthCodeRepository  extends JpaRepository<LagouAuthCode,Long> {

    @Query(value = "select * from lagou_auth_code  where email=?1 order by createtime desc",nativeQuery = true)
    public List<LagouAuthCode> findAuthCodeByEmail(String email);
}
